package com.chixing.work_04;

public class Bank extends Account{

    //初始化50个容量的Account数组 用于 保存账户信息
    private Account[] accountArr = new Account[50];
    private int i = 0;
    //开户

    public Bank(){}

    public Bank(long accNo, String accName, String accPassword, long accTelno, float accBalance) {
        super(accNo, accName, accPassword, accTelno, accBalance);
    }

    public Account registAccount(Account account){
        return this.accountArr[i++] = account;
    }

    public Account[] getAccountArr() {
        return accountArr;
    }

    public void setAccountArr(Account[] accountArr) {
        this.accountArr = accountArr;
    }
}
